bXOR
[Function] - Binary eXclusive OR of two values
Syntax:
a bXOR b
Parameters:
a,b: Two flags
Description:
Performs a logical XOR and returns TRUE if one of the arguments is true and one of the arguments is false. In essense, returns true if ONLY one of the arguments is true.
Examples:
PRINT 1 bXOR 1
The first of above function, when called, returns 0. The second is a small program which will keep every 2nd pixel of the display.
a |
b |
Result |
False |
False |
False |
False |
True |
True |
True |
False |
True |
True |
True |
False |
Notes:
See also:
Supported Plattforms:
ZX Spectrum